/**
 * @author banglong
 * @date 2016/9/13.
 */
require(['avalon', 'jquery', 'GoodsQuery', 'es5_sham', 'rootPath', 'Layer', 'polyfill'],
  function (avalon, $, GoodsQuery, es5_sham, rootPath, layer) {

    layer.config({
      path: rootPath.getRootPath() + 'js/common/layer/'
    });

    window.avalon = avalon;
    window.JQuery = window.$ = $;
    window.documentNodeTree = []; // 节点树 用于保存被替换的节点

    new GoodsQuery().init($('#main'), {
      showAllGoods: true,
      breadcrumb: '物品查询'
    });
  });